package com.bawei.fuxi.ui.home;

import com.bawei.fuxi.base.mvp.BaseModel;
import com.bawei.fuxi.entity.BannerEntity;
import com.bawei.fuxi.entity.VideoEntity;

import io.reactivex.Observable;


public class HomeModel extends BaseModel implements HomeContract.IHomeModel {
    @Override
    public Observable<VideoEntity> video(int currentPage, int pageSize) {
        return mApiServer.video(currentPage,pageSize);
    }

    @Override
    public Observable<VideoEntity> search(String keywords) {
        return mApiServer.search(keywords);
    }

    @Override
    public Observable<BannerEntity> banner() {
        return mApiServer.banner();
    }
}
